<?php
namespace app\admin\controller;

use think\Controller;

class Index extends Controller
{
    public function index()
    {
//        return 'Admin/index/index';
//        $this->assign('title', '后台首页');
//        return $this->fetch();
        return view('index', [
            'title' => 'TP5后台'
        ]);
    }

    public function jump()
    {
        // $this->success('添加成功!', url('index/index/index'));
        $this->error('添加失败!', url('index/index/index'));
    }

    public function rd()
    {
        // $this->redirect('index/index/user', ['id'=>'55']);
        $this->redirect('http://acfun.cn');
    }
}
